home *** CD-ROM | disk | FTP | other *** search
/ PCMania 19 / PCMania19.iso / Jogos em Flash / CARTAS / LET_IT_RIDE.SWF / scripts / DefineButton2_40 / BUTTONCONDACTION on(release).as
Text File  |  2002-05-07  |  4KB  |  152 lines

  1. on(release){
  2.    if(tOff == "0")
  3.    {
  4.       if(hsdplay == "1")
  5.       {
  6.          if(BoDeal == "1")
  7.          {
  8.             if(OnMax == "3")
  9.             {
  10.                Credits += creditsPlayed / "3";
  11.                creditsPlayed -= creditsPlayed / "3";
  12.                OnMax = "2";
  13.                tellTarget("/cr1")
  14.                {
  15.                   play();
  16.                }
  17.                if(chipRow >= "2")
  18.                {
  19.                   tellTarget("/cr2")
  20.                   {
  21.                      play();
  22.                   }
  23.                }
  24.                if(chipRow >= "3")
  25.                {
  26.                   tellTarget("/cr3")
  27.                   {
  28.                      play();
  29.                   }
  30.                }
  31.                if(chipRow >= "4")
  32.                {
  33.                   tellTarget("/cr4")
  34.                   {
  35.                      play();
  36.                   }
  37.                }
  38.                if(chipRow == "5")
  39.                {
  40.                   tellTarget("/cr5")
  41.                   {
  42.                      play();
  43.                   }
  44.                }
  45.             }
  46.          }
  47.          if(BoDeal == "2")
  48.          {
  49.             if(OnMax == "3")
  50.             {
  51.                Credits += creditsPlayed / "3";
  52.                creditsPlayed -= creditsPlayed / "3";
  53.                tellTarget("/betonme")
  54.                {
  55.                   gotoAndStop("2left");
  56.                }
  57.                tellTarget("/cr1")
  58.                {
  59.                   play();
  60.                }
  61.                if(chipRow >= "2")
  62.                {
  63.                   tellTarget("/cr2")
  64.                   {
  65.                      play();
  66.                   }
  67.                }
  68.                if(chipRow >= "3")
  69.                {
  70.                   tellTarget("/cr3")
  71.                   {
  72.                      play();
  73.                   }
  74.                }
  75.                if(chipRow >= "4")
  76.                {
  77.                   tellTarget("/cr4")
  78.                   {
  79.                      play();
  80.                   }
  81.                }
  82.                if(chipRow == "5")
  83.                {
  84.                   tellTarget("/cr5")
  85.                   {
  86.                      play();
  87.                   }
  88.                }
  89.             }
  90.             if(OnMax == "2")
  91.             {
  92.                Credits += creditsPlayed / "2";
  93.                creditsPlayed -= creditsPlayed / "2";
  94.                tellTarget("/betonme")
  95.                {
  96.                   gotoAndStop("1left");
  97.                }
  98.                tellTarget("/cr1")
  99.                {
  100.                   play();
  101.                }
  102.                if(chipRow >= "2")
  103.                {
  104.                   tellTarget("/cr2")
  105.                   {
  106.                      play();
  107.                   }
  108.                }
  109.                if(chipRow >= "3")
  110.                {
  111.                   tellTarget("/cr3")
  112.                   {
  113.                      play();
  114.                   }
  115.                }
  116.                if(chipRow >= "4")
  117.                {
  118.                   tellTarget("/cr4")
  119.                   {
  120.                      play();
  121.                   }
  122.                }
  123.                if(chipRow == "5")
  124.                {
  125.                   tellTarget("/cr5")
  126.                   {
  127.                      play();
  128.                   }
  129.                }
  130.             }
  131.          }
  132.          hsdplay = "0";
  133.          tellTarget("/setcards")
  134.          {
  135.             play();
  136.          }
  137.          tellTarget("/b-stand")
  138.          {
  139.             gotoAndStop(2);
  140.          }
  141.          tellTarget("/b-hit")
  142.          {
  143.             gotoAndStop(2);
  144.          }
  145.          tellTarget("/b-deal")
  146.          {
  147.             gotoAndStop(2);
  148.          }
  149.       }
  150.    }
  151. }
  152.